package com.zhiwang.planet.mvvm.model.entity

import com.google.gson.annotations.SerializedName

class VipModel(
        @SerializedName("curr_vip")
        var vipInfo: VipInfo,
        @SerializedName("vip_list")
        var vipList: List<VipItem>,
        @SerializedName("pay_types")
        var payTypes: List<PayType>

)

class VipInfo(var id: String?, var userid: String?, var pay_userid: String?,
              @SerializedName("vip")
              var vipLevel: String?,
              var start_time: String?,
              var end_time: String?,
              @SerializedName("vip_txt")
              var vipName: String?)

/**
 *  "vip": 12,
"vip_txt": "银卡VIP",
"period_days": 7,
"shiwan": 5,
"open_reward": 50000000,
"daily_pay": 500000,
"cost": 800,
"choujiang": 1,
"exchange_dgold": 4
 */
class VipItem(var vip: String,
              var vip_txt: String,
              var period_days: String,
              var shiwan: String,
              var open_reward: String,
              var daily_pay: String,
              var cost: String,
              var choujiang: String,
              var exchange_dgold: String,
              var isSuggested: Boolean = false)

/**
 * {
"type": "alipay",
"name": "支付宝"
}
 */
class PayType(var type: String, var name: String)